//
//  NBLLabel.m
//  NBLiOSTools
//
//  Created by GangX-yangjh on 2021/12/6.
//

#import "NBLLabel.h"

@implementation NBLLabel

- (instancetype)init
{
    self = [super init];
    if (self) {
        // 圆角
        self.cornerRadius = 12.f;
        self.masksToBounds = YES;
        // 边框
        self.borderColor = [UIColor lightGrayColor];
        self.borderWidth = 1.f;
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    // 圆角
    self.layer.cornerRadius = self.cornerRadius;
    self.layer.masksToBounds = self.masksToBounds;
    // 边框
    self.layer.borderWidth = self.borderWidth;
    self.layer.borderColor = self.borderColor.CGColor;
}

@end
